package com.github.glomadrian.materialanimatedswitch.observer;

import java.util.Observable;

/**
 * @author Adrián García Lomas
 */
public class BallMoveObservable extends Observable {
    private float ballAnimationValue;
    private int ballPosition;

    public void update() {
        setChanged();
        notifyObservers();
    }

    public float getBallAnimationValue() {
        return ballAnimationValue;
    }

    public void setBallAnimationValue(float val) {
        this.ballAnimationValue = val;
        setChanged();
        notifyObservers();
    }

    public int getBallPosition() {
        return ballPosition;
    }

    public void setBallPosition(int ballPosition) {
        this.ballPosition = ballPosition;
    }
}
